package com.f5.management.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author author
 * @create 2021 -04 -6 -9:09
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Vehicle {
    private int id;//自动递增
    private Member member;//成员
    private Community community;//小区
    private String img;//图像url
    private String color;//颜色
    private String numberPlate;//车牌
    private String desc;//
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date createTime;//创建时间
    private int status;//状态 0 有效 1 失效
}
